﻿
@using Single_SignOn.Models
@using Single_SignOn.ResX
@model Single_SignOn.Areas.PDA.Models.FunctionListModels
@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/PDA/Views/Shared/_LayoutHeader.cshtml";
}
@using (Html.BeginForm())
{
    <div>
        <div id="content">
            <div style="width: 100%;" class="center">   
                <table style="width: 100%;">
                    <tr>
                        <td class="right" id="right_header" style="width: 100%;">
                            @Html.Partial("_Profile", (UserProfile) Session["UserInfo"])
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100%; text-align: right;" class="right" >
                            
                            <div style="width: 100%; text-align: right; background-color: transparent; font-weight: bolder;">
                                <table style="width: 100%"  class="right">
                                    <tr>
                                        <td class="right"><h5> @ResourceTools.GetResource("Resource", "Company") : @ViewBag.Company</h5>
                                            <input type="hidden" value="@ViewBag.CompanyName" id="CompanyName" name="CompanyName"/></td>
                                    </tr>
                                </table>
                                
                            </div>
                        </td>

                    </tr>
                    <tr style="display: none;">
                        <td style="width: 100%; text-align: right;" class="right" >
                            <div style="width: 100%; text-align: right; background-color: transparent;">
                                <input type="hidden" value="@ViewBag.Language" id="LanguageName" name="LanguageName"/>
                                <input type="hidden" value="@ViewBag.ApplNo" id="ApplNo" name="ApplNo"/>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100%;"  class="right" >
                            @Html.Partial("_LogOut", (UserProfile) Session["UserInfo"])
                        </td>
                    </tr>
                </table>
            </div> 
            <div style="width: 100%; font-weight: bolder;" class="center">
                <table style="width: 100%;" class="center">
                    <tr>
                        <td style="width: 100%;" class="center">
                            <p></p>
                            <label>
                                <h4>@ViewBag.FunctionList</h4>
                            </label>
                            <p></p>
                        </td>
                    </tr>
                </table>
                <table style="width: 100%;" class="center">
                    <tr>
                        <td style="width: 100%;"  class="center" >
                            @{
                                if (Model.FunctionLists != null)
                                {
                                    @Html.Partial("_FunctionList", Model.FunctionLists)
                                }
                            }     
                        </td>
                    </tr>
                </table>
            </div>
            <div style="width: 100%; font-weight: bolder;" class="center">
                <table style="width: 100%;">
                    <tr>
                        <td class="right" style="width: 100%;">
                            <h5> @ResourceTools.GetResource("Resource", "Version") : @WebConfig.ApplNoVersion(@ViewBag.ApplNo) </h5>
                        </td>
                    </tr>
                    <tr>
                        <td class="right" style="width: 100%;">
                            <h5> @ResourceTools.GetResource("Resource", "LastUpdate") : @WebConfig.ApplNoLastUpdate(@ViewBag.ApplNo) </h5>
                        </td>
                    </tr>
                </table>
            </div>
            <div style="width: 100%;" class="center">
                <table style="width: 100%;">
                    <tr>
                        <td class="left" style="width: 100%;">
                             <ul class="toggle">
                                <li style="float: left;" ><a style="width:70px;" title=" @ResourceTools.GetResource("Resource", "Back") " href="@Html.AttributeEncode(Url.Action("Index", "ApplicationList"))?company=@ViewBag.CompanyName&language=@ViewBag.Language" >
                                       @ResourceTools.GetResource("Resource", "Back")
                                    </a>
                                </li>
                            </ul>
                        </td>
                    </tr>
                </table>
            </div>          
        </div>
    </div>
}
